﻿using PetaPoco;
using System;

namespace Cxuu.Models
{
    [TableName("cxuu_attment")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class Attment
    {
        public int Id { get; set; }
        public string Filename { get; set; }
        public string Ext { get; set; }
        public string Url { get; set; }
        public long Size { get; set; }
        public string Source { get; set; }
        public int Uid { get; set; }
        public DateTime Time { get; set; }
    }

    public class ViewAttment
    {
        public int Id { get; set; }
        public string Filename { get; set; }
        public string Ext { get; set; }
        public string Url { get; set; }
        public long Size { get; set; }
        public string Source { get; set; }
        public int Uid { get; set; }
        public DateTime Time { get; set; }
        public string Username { get; set; }
        public int UserId { get; set; }
    }

    public class ViewUploadInfo
    {
        public string Filename { get; set; }
        public string Ext { get; set; }
        public string Url { get; set; }
        public string Error { get; set; }
        public bool Success { get; set; }
    }
}
